package com.hsmpay.mobile.service.trans.impl;

import com.hsmpay.common.service.impl.BaseServiceSupport;
import com.hsmpay.mobile.dao.trans.TransPriorSettleDao;
import com.hsmpay.mobile.pojo.trans.TransPriorSettle;
import com.hsmpay.mobile.service.trans.TransPriorSettleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 结算前收款交易记录 服务接口实现类 transPriorSettleService
 * 对应dao TransPriorSettleDao
 *
 * @author 颜铃璋
 *         创建时间：2013-1-24
 */
@Service("transPriorSettleService")
public class TransPriorSettleServiceImpl extends BaseServiceSupport<TransPriorSettle, Long> implements TransPriorSettleService<TransPriorSettle, Long> {
    @Resource(name = "transPriorSettleDao")
    private TransPriorSettleDao<TransPriorSettle, Long> transPriorSettleDao;

    /**
     * 查询交易 收款信息
     *
     * @param terminalId
     * @param merchantOrderId
     * @return
     * @throws Exception
     */
    public TransPriorSettle searchTransPriorSettle(String terminalId, String merchantOrderId) throws Exception {
        return transPriorSettleDao.searchTransPriorSettle(terminalId, merchantOrderId);
    }
}
